package com.meixiang.activity.account;

import android.os.Bundle;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.meixiang.R;
import com.meixiang.adapter.RecyclerAdapter;
import com.meixiang.main.BaseActivity;

import java.util.List;


public class TestActivity extends BaseActivity {
    private RecyclerView recycler_view;
    private RecyclerAdapter mAdapter;
    private List<String> mDatas;
    @Override
    protected void onCreate(Bundle savedInstanceState) {

        setContentView(R.layout.activity_test);
        super.onCreate(savedInstanceState);

    }

    @Override
    protected void initTitle() {

    }

    @Override
    protected void initView() {
        //初始化按钮
        recycler_view= (RecyclerView) findViewById(R.id.recycler_view);
        recycler_view.setLayoutManager(new LinearLayoutManager(this));
        recycler_view.setItemAnimator(new DefaultItemAnimator());
//        recycler_view.addItemDecoration();
//        mAdapter = new RecyclerAdapter(this, mDatas);
        //s设置adapter 这个adapter必须继承 RecyclerView.Adapter
        recycler_view.setAdapter(mAdapter);
    }

    @Override
    protected void setData() {

    }

    @Override
    public void onClick(View v) {
    }


}
